package com.hengpeng.itfinbase.persist;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;

import com.hengpeng.common.web.annotation.HtmlInput;
import com.hengpeng.common.web.annotation.HtmlInputPattern;
import com.hengpeng.common.web.annotation.HtmlInputType;
import com.hengpeng.itfinbase.idAssign.AbstractAssign18IdEntity;

/**
 * <pre>
 * 项目约谈预约信息
 * </pre>
 * 
 * @author weiyuan
 * @version 1.0, 2015年8月24日
 */
@Entity
public class ProjectInfoContacts extends AbstractAssign18IdEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1557387274145913840L;

	public enum ContactsType {
		type1("咨询服务"), type2("投资"), type3("融资"), type4("承建"), type5("运营"), type6(
				"供应商"), type7("包销"), type8("其他");

		private String text;

		ContactsType(String text) {
			this.text = text;
		}

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}
	}

	/**
	 * 项目id
	 */
	private Long projectId;

	@Column(length = 500)
	@HtmlInput(label = "预约人名称", maxLength = 500, type = HtmlInputType.TEXT, index = 3, nullable = false)
	private String startUserName;// 发起人姓名

	private Long startUserId;// 发起人id

	private Long receiveUserId;// 接受人id

	@Column(length = 500)
	@HtmlInput(label = "联系手机", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String linkmobile;

	@Column(length = 500)
	@HtmlInput(label = "联系电话", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String linkphone;

	@Column(length = 500)
	@HtmlInput(label = "联系邮箱", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String linkemail;

	@Column(length = 500)
	@HtmlInput(label = "项目标题", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String projectname;

	@Column(length = 500)
	@HtmlInput(label = "项目描述", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String projectdesc;

	@Column(length = 25)
	@Enumerated(javax.persistence.EnumType.STRING)
	@HtmlInput(label = "预约类型", type = HtmlInputType.SELECT, labelProperty = "text", index = 2, nullable = false)
	private ContactsType contactsType;

	@Column(length = 50)
	@HtmlInput(label = "补充说明", maxLength = 500, type = HtmlInputType.TEXT, index = 4, nullable = false)
	private String bc;

	@HtmlInput(label = "最后修改日期", type = HtmlInputType.TEXT, pattern = HtmlInputPattern.DATETIME, format = "yyyy-MM-dd HH:mm", nullable = true, index = 24)
	private Date updateTime;

	@HtmlInput(label = "创建日期", type = HtmlInputType.TEXT, pattern = HtmlInputPattern.DATETIME, format = "yyyy-MM-dd HH:mm", nullable = true, index = 24)
	private Date createTime;

	@Column(length = 50)
	@HtmlInput(label = "商业计划书名称", maxLength = 500, type = HtmlInputType.TEXT, index = 2, nullable = false)
	private String planfilename;

	@Column(length = 50)
	@HtmlInput(label = "商业计划书路径", maxLength = 500, type = HtmlInputType.TEXT, index = 2, nullable = false)
	private String planfilepath;

	public String getProjectname() {
		return projectname;
	}

	public void setProjectname(String projectname) {
		this.projectname = projectname;
	}

	public String getProjectdesc() {
		return projectdesc;
	}

	public void setProjectdesc(String projectdesc) {
		this.projectdesc = projectdesc;
	}

	public String getPlanfilename() {
		return planfilename;
	}

	public void setPlanfilename(String planfilename) {
		this.planfilename = planfilename;
	}

	public String getPlanfilepath() {
		return planfilepath;
	}

	public void setPlanfilepath(String planfilepath) {
		this.planfilepath = planfilepath;
	}

	public String getLinkphone() {
		return linkphone;
	}

	public void setLinkphone(String linkphone) {
		this.linkphone = linkphone;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public String getStartUserName() {
		return startUserName;
	}

	public void setStartUserName(String startUserName) {
		this.startUserName = startUserName;
	}

	public Long getStartUserId() {
		return startUserId;
	}

	public void setStartUserId(Long startUserId) {
		this.startUserId = startUserId;
	}

	public Long getReceiveUserId() {
		return receiveUserId;
	}

	public void setReceiveUserId(Long receiveUserId) {
		this.receiveUserId = receiveUserId;
	}

	public String getLinkmobile() {
		return linkmobile;
	}

	public void setLinkmobile(String linkmobile) {
		this.linkmobile = linkmobile;
	}

	public String getLinkemail() {
		return linkemail;
	}

	public void setLinkemail(String linkemail) {
		this.linkemail = linkemail;
	}

	public ContactsType getContactsType() {
		return contactsType;
	}

	public void setContactsType(ContactsType contactsType) {
		this.contactsType = contactsType;
	}

	public String getBc() {
		return bc;
	}

	public void setBc(String bc) {
		this.bc = bc;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
